package com.example.demo.service;

import com.example.demo.entity.User;
import com.example.demo.mapper.QueryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    QueryMapper queryMapper;
    public List<User> queryAllUser(){
        List<User> users = queryMapper.selectAllUser();
        return users;
    }
}
